package org.linlinjava.litemall.admin.web2.auth.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.linlinjava.litemall.db.domain.LitemallAdmin;

@ApiModel
public class AResp2 {
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("登录账号[无法编辑]")
    private String username;
    @ApiModelProperty("登录密码[直接重置]")
    private String password;
    @ApiModelProperty("真实名字")
    private String realName;
    @ApiModelProperty("微信")
    private String wx;
    @ApiModelProperty("联系电话")
    private String phone;
    @ApiModelProperty("商铺id")
    private Integer shopId;
    @ApiModelProperty("商品管理员")
    private Boolean goodsManager;
    @ApiModelProperty("商品派送员")
    private Boolean sendManager;
    @ApiModelProperty("锁定")
    private Boolean lock;

    public AResp2() {
    }

    public AResp2(LitemallAdmin admin) {
        id = admin.getId();
        username = admin.getUsername();
        realName = admin.getRealName();
        wx = admin.getWx();
        phone = admin.getPhone();
        shopId = admin.getShopId();
        goodsManager = admin.getGoodsManager();
        sendManager = admin.getSendManager();
        lock = admin.getLock();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getWx() {
        return wx;
    }

    public void setWx(String wx) {
        this.wx = wx;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Boolean getGoodsManager() {
        return goodsManager;
    }

    public void setGoodsManager(Boolean goodsManager) {
        this.goodsManager = goodsManager;
    }

    public Boolean getSendManager() {
        return sendManager;
    }

    public void setSendManager(Boolean sendManager) {
        this.sendManager = sendManager;
    }

    public Boolean getLock() {
        return lock;
    }

    public void setLock(Boolean lock) {
        this.lock = lock;
    }
}
